package com.villaday.idf.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.base.OnAdapterCallbackListener;
import com.villaday.idf.model.allVipMembersEntity;
import com.villaday.idf.model.vipsGroupsEntity;

import java.util.List;

/**
 * 分佣设置修改分组弹出对话框
 */

public class DialogUpdateGroupAdapter extends AbsRecyclerViewAdapter<vipsGroupsEntity.BodyBean> {
    private View.OnClickListener onClickListener;
    private Context mContext;
    private List<allVipMembersEntity.BodyBean> mData;
    private String groupId;

    public DialogUpdateGroupAdapter(Context context,String groupId) {
        super(context, R.layout.recyclerview_dialog_update_group);
        this.mContext = context;
        this.groupId =groupId;

    }


    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, vipsGroupsEntity.BodyBean d, int position) {
            holder.bindTextView(R.id.tv_group_info,d.getName()+"("+d.getQuantity()+"人)")
                    .bindTextView(R.id.tv_rabit_info,"分佣比例:"+d.getBrokenPercent()+"%")
                    .setViewSelected(R.id.iv_choose,d.isSelected());

    }

}
